from django.conf.urls import url
from . import views, views_lucky

urlpatterns = [

    url(r'^info/$', views.MerchantUserModelViewSet.as_view({'get': 'info'})),
    url(r'^bill/$', views.MerchantBillModelViewSet.as_view({'get': 'list'})),
    url(r'^bill/(?P<pk>\d+)/$', views.MerchantBillModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^order/$', views.OrderInfoModelViewSet.as_view({'get': 'list'})),
    url(r'^order/(?P<pk>\d+)/$', views.OrderInfoModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^check_coupon/$', views.OrderInfoModelViewSet.as_view({'post': 'check_coupon'})),
    url(r'^use_coupon/$', views.OrderInfoModelViewSet.as_view({'post': 'use_coupon'})),
    url(r'^add_express/$', views.OrderInfoModelViewSet.as_view({'post': 'add_express'})),
    url(r'^delete_express/$', views.OrderInfoModelViewSet.as_view({'post': 'delete_express'})),
    url(r'^merchant/(?P<pk>\d+)/$', views.MerchantModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^add_image/$', views.MerchantModelViewSet.as_view({'post': 'add_image'})),
    url(r'^delete_image/$', views.MerchantModelViewSet.as_view({'post': 'delete_image'})),
    url(r'^update_logo/$', views.MerchantModelViewSet.as_view({'post': 'update_logo'})),
    url(r'^get_address/$', views.MerchantModelViewSet.as_view({'get': 'get_address'})),
    url(r'^sms_codes/$', views.MerchantModelViewSet.as_view({'get': 'sms_codes'})),
    url(r'^update_mobile/$', views.MerchantModelViewSet.as_view({'post': 'update_mobile'})),
    url(r'^verify_order/$', views.MerchantModelViewSet.as_view({'get': 'verify_order'})),
    url(r'^payment/$', views.MerchantModelViewSet.as_view({'get': 'payment'})),
    url(r'^check_order/$', views.MerchantModelViewSet.as_view({'get': 'check_order'})),
    url(r'^big_turntable/$', views.MerchantModelViewSet.as_view({'get': 'big_turntable'})),
    url(r'^lucky_draw/$', views.MerchantModelViewSet.as_view({'get': 'lucky_draw'})),
    url(r'^apply_admission/$', views.MerchantModelViewSet.as_view({'post': 'apply_admission'})),
    url(r'^applyment/$', views.MerchantModelViewSet.as_view({'get': 'applyment'})),
    url(r'^operation_mall/$', views.MerchantModelViewSet.as_view({'post': 'operation_mall'})),
    url(r'^bank_qrcode/$', views.MerchantModelViewSet.as_view({'get': 'bank_qrcode'})),
    url(r'^download_bank_qrcode/$', views.MerchantModelViewSet.as_view({'get': 'download_bank_qrcode'})),
    url(r'^touch_big_turntable/$', views.MerchantModelViewSet.as_view({'get': 'touch_big_turntable'})),
    url(r'^touch_lucky_draw/$', views.MerchantModelViewSet.as_view({'get': 'touch_lucky_draw'})),
    url(r'^trade_blessings_big_turntable/$', views.MerchantModelViewSet.as_view({'get': 'trade_blessings_big_turntable'})),
    url(r'^trade_blessings_lucky_draw/$', views.MerchantModelViewSet.as_view({'get': 'trade_blessings_lucky_draw'})),
    url(r'^check_touch_merchant/$', views.MerchantModelViewSet.as_view({'get': 'check_touch_merchant'})),
    url(r'^category/$', views.MerchantBusinessCategoryModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentactivity/$', views.WaivePaymentActivityModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentactivity/(?P<pk>\d+)/$', views.WaivePaymentActivityModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^waivepaymentmerchant/$', views.WaivePaymentMerchantModelViewSet.as_view({'get': 'list'})),
    url(r'^waivepaymentmerchant/(?P<pk>\d+)/$', views.WaivePaymentMerchantModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^check_company_mobile/$', views.WaivePaymentMerchantModelViewSet.as_view({'post': 'check_company_mobile'})),
    url(r'^eighteight/$', views.MerchantEightEightDrawModelViewSet.as_view({'get': 'list'})),
    url(r'^eighteight/(?P<pk>\d+)/$', views.MerchantEightEightDrawModelViewSet.as_view({'put': 'update'})),
    url(r'^goods/$', views.GoodsModelViewSet.as_view({'get': 'list', 'post': 'create'})),
    url(r'^goods/(?P<pk>\d+)/$', views.GoodsModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^sweep_code_identification/$', views.GoodsModelViewSet.as_view({'get': 'sweep_code_identification'})),
    url(r'^upload_image/$', views.GoodsModelViewSet.as_view({'post': 'upload_image'})),
    url(r'^expresstype/$', views.ExpressTypeModelViewSet.as_view({'get': 'list'})),
    url(r'^choices_expresstype/$', views.ExpressTypeModelViewSet.as_view({'get': 'choices_expresstype'})),
    url(r'^monthly_bill/$', views.MerchantMonthlyBillModelViewSet.as_view({'get': 'list'})),
    url(r'^monthly_bill/(?P<pk>\d+)/$', views.MerchantMonthlyBillModelViewSet.as_view({'get': 'retrieve'})),
    url(r'^applicationform/$', views.AfterSaleApplicationFormModelViewSet.as_view({'get': 'list'})),
    url(r'^applicationform/(?P<pk>\d+)/$', views.AfterSaleApplicationFormModelViewSet.as_view({'get': 'retrieve', 'put': 'update'})),
    url(r'^receive_goods/$', views.AfterSaleApplicationFormModelViewSet.as_view({'post': 'receive_goods'})),
    url(r'^deliver_goods/$', views.AfterSaleApplicationFormModelViewSet.as_view({'post': 'deliver_goods'})),
    url(r'^express/$', views.ExpressModelViewSet.as_view({'get': 'list'})),
    url(r'^express/(?P<pk>\d+)/$', views.ExpressModelViewSet.as_view({'delegette': 'retrieve'})),
    url(r'^goodscomment/$', views.GoodsCommentModelViewSet.as_view({'get': 'list'})),

    url(r'^luckybagactivity/$', views_lucky.LuckyBagActivityModelViewSet.as_view({'get': 'luckybagactivity'})),
    url(r'^luckybagactivitychild/$', views_lucky.LuckyBagChildActivityModelViewSet.as_view({'post': 'luckybagactivitychild'})),
    url(r'^open_luckybag/$', views_lucky.LuckyBagChildActivityModelViewSet.as_view({'post': 'open_luckybag'})),
    url(r'^luckybagrecord/$', views_lucky.LuckyBagRecordModelViewSet.as_view({'get': 'list'})),
    url(r'^luckybagclaimprize/$', views_lucky.LuckyBagRecordModelViewSet.as_view({'post': 'luckybagclaimprize'})),
    url(r'^scoutthestoreleaderboard/$', views_lucky.ScoutTheStoreLeaderboardModelViewSet.as_view({'get': 'list'})),
    url(r'^reward_info/$', views_lucky.ScoutTheStoreLeaderboardModelViewSet.as_view({'get': 'reward_info'})),
    url(r'^retrieve_reward/$', views_lucky.ScoutTheStoreLeaderboardModelViewSet.as_view({'post': 'retrieve_reward'})),
    url(r'^auth_big_turntable/$', views_lucky.MerchantAuthActivityModelViewSet.as_view({'get': 'auth_big_turntable'})),
    url(r'^auth_lucky_draw/$', views_lucky.MerchantAuthActivityModelViewSet.as_view({'get': 'auth_lucky_draw'})),
    url(r'^auth_lucky_draw_list/$', views_lucky.MerchantAuthActivityModelViewSet.as_view({'get': 'auth_lucky_draw_list'})),
    url(r'^receive_auth_lucky_draw/$', views_lucky.MerchantAuthActivityModelViewSet.as_view({'get': 'receive_auth_lucky_draw'})),
]